import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { BasFormConfigInput } from './dto/BasFormConfigInput';
import { BasFormConfigOutput } from './dto/BasFormConfigOutput';

export type { BasFormConfigInput, BasFormConfigOutput };

const service = 'BasFormConfig/'; // 要写后面的斜杠, 不要写前面的斜杠

export const BasFormConfigApi = {
	all: () => {
		return axiosPost(service + 'all', {}) as Promise<BasFormConfigOutput[]>;
	},
	save: (data?: BasFormConfigInput) => {
		return axiosPost(service + 'save', data) as Promise<boolean>;
	},
};
